package com.example.homescreen;



import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.widget.Button;


public class Home extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_home);
		Button btnDict = (Button) findViewById(R.id.button1);
		Button btnQuiz = (Button) findViewById(R.id.button2);
		Button btnAbout = (Button) findViewById(R.id.button3);
		Button btnExit = (Button) findViewById(R.id.button4);
		
		btnDict.setOnClickListener(new View.OnClickListener() {

			@Override
			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				Intent nextScreen = new Intent(getApplicationContext(),
						maindictionary.class);
				startActivity(nextScreen);
			}
		});
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.home, menu);
		return true;
	}
	
	

}
